Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support extending ftltest context with additional options #2535

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

jvmakine
Copy link
Contributor

@jvmakine jvmakine commented Aug 29, 2024

Adds a new SubContext function, that replays options from a previous fakeFTL creation, appending new options to it.

Closes #2393

@ftl-robot ftl-robot mentioned this pull request Aug 29, 2024
@@ -25,6 +25,9 @@ import (
mcu "github.com/TBD54566975/ftl/internal/testutils/modulecontext"
)

// Allows tests to mock module reflection
var moduleGetter = reflection.Module
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to eventually figure out a more comprehensive way to stub out the reflection for tests.

@jvmakine jvmakine force-pushed the juho/issue-2393-sub-context branch from d05e148 to c13cc96 Compare August 29, 2024 02:04
@jvmakine jvmakine marked this pull request as ready for review August 29, 2024 02:08
@jvmakine jvmakine requested a review from alecthomas as a code owner August 29, 2024 02:08
@jvmakine jvmakine requested review from a team and gak and removed request for a team August 29, 2024 02:08
go-runtime/ftl/ftltest/fake.go Outdated Show resolved Hide resolved
@jvmakine jvmakine force-pushed the juho/issue-2393-sub-context branch from c13cc96 to 2b3ef5a Compare August 29, 2024 02:58
@jvmakine jvmakine added this pull request to the merge queue Aug 29, 2024
Merged via the queue into main with commit d9745ae Aug 29, 2024
19 checks passed
@jvmakine jvmakine deleted the juho/issue-2393-sub-context branch August 29, 2024 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go ftltest package: allow "sub contexts" to be created
2 participants